package com.ynet.middleground.contract.bean;

import java.io.Serializable;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 项目名：ifp-contract <br>
 * 包名：com.ynet.middleground.contract.bean <br>
 * 类名：MergeCellsHorizonalBean <br>
 * 描述： 水平合并单元格具体信息（合并列）
 * 
 * @author liulx
 * @create 2021-09-13 10:36
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "水平合并单元格具体信息（合并列）", description = "水平合并单元格具体信息（合并列）")
public class MergeCellsHorizonalBean implements Serializable {

    private static final long serialVersionUID = -6668333351322583156L;

    @Valid
    @NotNull(message = "水平合并单元格行不能为空")
    @ApiModelProperty(value = "水平合并单元格的行数<br>如：1，即第 1 行", notes = "水平合并单元格的行数<br>如：1，即第 1 行", dataType = "Integer",
        required = true, example = "1")
    private Integer row;

    @Valid
    @NotNull(message = "水平合并单元格起始列不能为空")
    @ApiModelProperty(value = "水平合并单元格起始列<br> 如：2，即第 2 列", notes = "水平合并单元格起始列<br> 如：2，即第 2 列", dataType = "Integer",
        required = true, example = "2")
    private Integer fromCol;

    @Valid
    @NotNull(message = "水平合并单元格截止列不能为空")
    @ApiModelProperty(value = "水平合并单元格截止列<br> 如：5，即第 5 列", notes = "水平合并单元格截止列<br> 如：5，即第 5 列", dataType = "Integer",
        required = true, example = "5")
    private Integer toCol;

}
